import sendMsg from "../utils/sendMsg";
export const videoMsg=(vm,item)=>{
	try{
		var messageType = 6;
	var content = {
		videoPath: item.videoPath,
		videoPic: item.videoPic
	};
	const msg = sendMsg(messageType, vm.toTarget, content);
	vm.messages.push(msg);
	if (vm.stateConfig.isSound===1) {
		vm.playNotificationSound('send');
	}else if(vm.stateConfig.isSound===2){
		uni.vibrateShort()
	}
	
	vm.$nextTick(() => {
		uni.pageScrollTo({
			scrollTop: 9999,
			duration: 100
		});
	});	
	return{
		data:"ok"
	}	
	}catch(e){
		console.log(e)
		return{
		data:"ok"
		}
	
	}
    
	
	
	
}